
package com.gp.data;

import java.util.ArrayList;
import java.util.List;

import com.gp.R;

/**
 * @author shijunxing
 * @className TravalGuides
 * @date Sep 5, 2013 12:56:16 AM
 * @version 1.0
 * @Description 旅游攻略的数据
 */
public class TravalGuides {

    // 存放城市指南信息
    public static List<Data> INFORMATION = new ArrayList<TravalGuides.Data>();

    // 定义具体描述信息,这里的信息放在res/raw/目录下，这里其实存放的是id
    static int[] descriptions =

    { R.raw.tg_shoppingguide, R.raw.tg_playing, R.raw.tg_tourroutes,
            R.raw.tg_attractions, R.raw.tg_travelingtime, R.raw.tg_foodguide,
            R.raw.tg_arealdistribution, R.raw.tg_usefulinformation,
            R.raw.tg_specialsxperiences, R.raw.tg_hotel };

    static String[] title = { "购物攻略", "桂林必玩", "行程推荐", "景点推荐", "旅游时间", "美食攻略",
            "区域分布", "实用信息", "特色体验", "住宿攻略" };

    static {

        // 给信息赋值
        for (int i = 0; i < descriptions.length; i++) {

            TravalGuides.INFORMATION.add(new Data(title[i], descriptions[i]));
        }

    }

    // 数据格式类
    public static final class Data {

        public final String title;
        public final int descriptions;

        private Data( String ptitle, int pdescriptions ) {

            this.title = ptitle;
            this.descriptions = pdescriptions;

        }

    }

}
